from selenium.webdriver.common.by import By

from xueqiu_app_po.base.xueqiu_app import XueQiuApp
from xueqiu_app_po.page.set_up_page import SetUpPage


class MyPage(XueQiuApp):
    _SET_UP = By.XPATH,"//*[@text='设置']"
    # 到设置页
    def goto_set_up(self):
        # 点击设置按钮
        self.swipe_element(*self._SET_UP).click()
        return SetUpPage(self.driver)

